# centos7断电无法启动,提示Internal error xfs XFS_WANT_CORRUPTED_GOTO 错误

(adsbygoogle = window.adsbygoogle || []).push({});

目录

# 问题

有一台虚拟机,意外断电后出现如下错误:

Internal error xfs XFS_WANT_CORRUPTED_GOTO at line 1662 of file fs/xfs/libxfs/xfs_alloc.c Caller xfs_free_extent+0x130 [xfs]
Internal error xfs_trans_cancel at line 990 of file fs/xfs/xfs_trans.c.Caller xlog_recover_process_efi +0x16b/0x190 [xfs]
Corruption of in-memory data detected. Shutting down filesystem
Please umount the filesystem and rectify the problem(s)
Failed to recover EFIs
Generating "/run/initramfs/rdsosreport.txt" 

说明xfs日志出现损坏,需要修复

# 解决办法

尝试执行:

xfs_repair /dev/mapper/centos-root

若提示:

ERROR:The filesystem has ualuable metadata changes in a log which needs tobe replayed. Mount the filesystem to replay the log, and unmount it bef orere-running xfs_repair. If you are unable to mount the filesystem,then usethe -L option to destroy the log and attempt a repair .
Note that destroying the log may cause corruption -- please attempt a mountof the f ilesystem bef ore doing this.

说明需要清空错误日志,此命令会清除断电前的错误日志,可能导致断电前未写入磁盘的部分数据丢失,如果非重要数据可执行

xfs_repair -L /dev/mapper/centos-root

执行如果无错误,可重启

init 6

成功进入系统

(adsbygoogle = window.adsbygoogle || []).push({});
Last Updated: 4/30/2023, 9:10:11 PM